import request from '@/utils/request'

// 查询平台运费模板列表
export function listPlatformFreightTemplate(query) {
  return request({
    url: '/gather/platformFreightTemplate/list',
    method: 'get',
    params: query
  })
}

// 查询平台运费模板详细
export function getPlatformFreightTemplate(id) {
  return request({
    url: '/gather/platformFreightTemplate/' + id,
    method: 'get'
  })
}

// 新增平台运费模板
export function addPlatformFreightTemplate(data) {
  return request({
    url: '/gather/platformFreightTemplate',
    method: 'post',
    data: data
  })
}

// 修改平台运费模板
export function updatePlatformFreightTemplate(data) {
  return request({
    url: '/gather/platformFreightTemplate',
    method: 'put',
    data: data
  })
}

// 删除平台运费模板
export function delPlatformFreightTemplate(id) {
  return request({
    url: '/gather/platformFreightTemplate/' + id,
    method: 'delete'
  })
}
